from flask import Blueprint
from riversr.model.models import TestModel
# /user
bp = Blueprint("test",__name__,url_prefix="/test")
# /user/show
@bp.route("/show")
def index():
    # 增
    # name = "wangwu"
    # test = TestModel(name=name)
    # test.insert(test)
    
    
    # 查
    # test = TestModel().select_by_id(1)
    # print(test.id,test.name)
    # test = TestModel().select_by_name("wangwu")
    # print(test.id,test.name)
    

    # # 改
    # test.update_by_id(1,"zhangsan999")


    # 删 id=3
    # test.delete_by_id(3)


    return "show"


